home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
UTILHIVE
/
FILEARCH.LZH
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-09-25
|
4KB
|
99 lines
Echo off
CLS
if "%1" == "" goto Noparms
if "%2" == "" goto NoDir
GOTO Proceed
:NoDir
Echo
Echo WARNING: You did not specify a directory
Echo
Echo If you proceed, File/Archive will be installed in the root directory
Echo of drive %1. If you made a mistake and want to start over, then
Echo press Ctl-Brk now; otherwise
Echo
Pause
Cls
:Proceed
Echo
Echo ══════════════════════════════════════════════════════════════════════
Echo
Echo F I L E / A R C H I V E
Echo Hard Disk Installation Procedure
Echo
Echo You have asked that File/Archive be installed on a
Echo drive and directory specified by you. They are:
Echo
Echo drive DIRECTORY
Echo
Echo %1 %2
Echo
Echo If this is not correct, press Ctl-Brk now. Then re-enter
Echo the procedure with the correct drive letter and directory
Echo according to the following format:
Echo
Echo HDINST x: name
Echo
Echo where "x" is the drive letter and "name" is the name of
Echo the directory you wish to use. The current (default)
Echo drive should be A:.
Echo
Echo ══════════════════════════════════════════════════════════════════════
Echo
pause
if "%2" == "" goto BypassMD
MD %1\%2
:BypassMD
%1
CD \%2
Echo Echo off > inst0.bat
Echo Cls >> inst0.bat
Echo HDINST2 %1 %2 >> inst0.bat
GOTO Cont1
:Noparms
Echo
Echo ╔════════════════════════════════════════════════════════════════════╗
Echo ║ ║
Echo ║ F I L E / A R C H I V E ║
Echo ║ Hard Disk Installation Procedure ║
Echo ║ ║
Echo ║ This procedure will install File/Archive on your hard disk ║
Echo ║ and set up the control files to simplify its operation. ║
Echo ║ ║
Echo ║ It will create a sub-directory called FILARC where the ║
Echo ║ programs and data files will be stored. It assumes that ║
Echo ║ your hard disk is drive C:. If this is not correct, or ║
Echo ║ if you want to use a different directory name, press ║
Echo ║ Ctl-Brk now. Then re-enter the procedure with the correct ║
Echo ║ drive letter and directory name according to the following ║
Echo ║ format: ║
Echo ║ HDINST x: name ║
Echo ║ ║
Echo ║ where "x" is the drive letter and "name" is the name of ║
Echo ║ the directory you wish to use. The current (default) ║
Echo ║ drive should be A:. ║
Echo ║ ║
Echo ╚════════════════════════════════════════════════════════════════════╝
Echo
pause
MD C:\FILARC
C:
CD \FILARC
Echo Echo off > inst0.bat
Echo Cls >> inst0.bat
Echo HDINST2 C: FIlARC >> inst0.bat
:Cont1
CLS
Echo
Echo Extracting files/programs - one moment please .....
Echo
: If a master already exists, rename it
IF EXIST FILARC.MRE Ren FILARC.MRE FILARC.BAK
A:FILARC20
A:USERDOC
: Extract all files to the installation directory
IF NOT EXIST FILARC.BAK Goto SkipRename
Del FILARC.MRE
Ren FILARC.BAK *.MRE
:SkipRename
INST0